home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 3.0 KB | 123 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Part.h
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef PART_H
- #define PART_H
-
- #ifndef DEFINES_K
- #include "Defines.k"
- #endif
-
- // ----- Framework Includes -----
-
- #ifndef FWPART_H
- #include "FWPart.h"
- #endif
-
- // ----- OS Layer -----
-
- #ifndef FWRESFIL_H
- #include "FWResFil.h"
- #endif
-
- // ----- Foundation Layer -----
-
- #ifndef FWSTDDEF_H
- #include "FWStdDef.h"
- #endif
-
- #ifndef FWBNDSTR_H
- #include "FWBndStr.h"
- #endif
-
-
- //========================================================================================
- // Forward Declarations
- //========================================================================================
-
- class FW_CPart;
- class FW_CString;
- class FW_CMenuBar;
- class FW_CMenuEvent;
- class FW_CPresentation;
- class FW_CPictureShape;
-
- //========================================================================================
- // CFormPart
- //========================================================================================
-
- class CFormPart : public FW_CPart
- {
- //----------------------------------------------------------------------------------------
- // Initialization/Destruction
- //
- public:
-
- FW_DECLARE_AUTO(CFormPart)
-
- CFormPart(ODPart* odPart);
- virtual ~CFormPart();
-
- virtual void Initialize(Environment* ev, ODStorageUnit* storageUnit, FW_Boolean fromStorage); // Override
-
- //----------------------------------------------------------------------------------------
- // Inherited API
- //
- public:
- virtual FW_CFrame* NewFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- FW_Boolean fromStorage);
-
- virtual FW_Handled DoAdjustMenus(Environment* ev,
- FW_CMenuBar* menuBar,
- FW_Boolean hasMenuFocus,
- FW_Boolean isRoot);
-
- virtual FW_Handled DoMenu(Environment* ev,
- const FW_CMenuEvent& theMenuEvent);
-
- virtual FW_Handled DoAbout(Environment* ev);
- virtual FW_CContent* NewPartContent(Environment* ev);
-
- //----------------------------------------------------------------------------------------
- // New API
- //
- public:
- FW_CPresentation* GetPwdDialogPresentation();
-
- void DoFormCommand(Environment* ev);
-
- void GetResourceString(Environment* ev,
- FW_ResourceID multiStringID,
- FW_ResourceID stringID,
- FW_CString& string);
-
- //----------------------------------------------------------------------------------------
- // Data Members
- //
- private:
- FW_CString255 fTextData;
- FW_Boolean fIsForm;
-
- FW_CPresentation* fMainPresentation;
- FW_CPresentation* fPwdDialogPresentation;
- };
-
- //==============================================================================
- // CFormPart Inlines
- //==============================================================================
-
- inline FW_CPresentation* CFormPart::GetPwdDialogPresentation()
- {
- return fPwdDialogPresentation;
- }
-
- #endif
-